import Vue from 'vue';
import Router from 'vue-router';
const loginPage = resolve => require(['@/page/common/login-page'], resolve) 
const rechargePassword = resolve => require(['@/page/common/recharge-password'], resolve) 
const voteList = resolve => require(['@/page/voteManage/voteList'], resolve)
const voteEdit = resolve => require(['@/page/voteManage/voteEdit'], resolve)
const voteDetail = resolve => require(['@/page/voteManage/voteDetail'], resolve)
const userList = resolve => require(['@/page/userManage/userList'], resolve) 
const applyAuthorization = resolve => require(['@/page/userManage/applyAuthorization'], resolve) 
const informList = resolve => require(['@/page/informManage/informList'], resolve) 
const informEdit = resolve => require(['@/page/informManage/informEdit'], resolve)


Vue.use(Router)

export default new Router({
  mode: 'history',
  base:'/sys/', 
  routes: [
      {
          path: '/loginPage',
          name: 'loginPage',
          component: loginPage
      },
      {
        path: '/rechargePassword',
        name: 'rechargePassword',
        component: rechargePassword
      },
      {
        path: '/',
        name: 'voteList',
        component: voteList
      },
      {
        path: '/voteEdit',
        name: 'voteEdit',
        component: voteEdit
      },
      {
        path: '/voteDetail',
        name: 'voteDetail',
        component: voteDetail
      },
      {
        path: '/userList',
        name: 'userList',
        component: userList
      },
      {
        path: '/applyAuthorization',
        name: 'applyAuthorization',
        component: applyAuthorization
      },
      {
        path: '/informList',
        name: 'informList',
        component: informList
      },
      {
        path: '/informEdit',
        name: 'informEdit',
        component: informEdit
      },
  
  ]
})
